package com.ly.common.core.utils;

import com.ly.common.core.constant.BaseConstant;

/**
 * url工具类
 *
 * @author luoyun
 */
public class UrlUtils {

    /**
     * 判断是否外网URL
     *
     * @return
     */
    public static Boolean isWwwHttpUrl(String url) {
        boolean flag =
                url != null &&
                        (url.startsWith(BaseConstant.HTTP_PROTOCOL)
                                || url.startsWith(BaseConstant.HTTPS_PROTOCOL)
                                || url.startsWith("{{")
                        );
        return flag;
    }
}